package com.company.singleton.fork;

public class HungaryMan {
    private HungaryMan(){}
    private static final HungaryMan HUNGARY_MAN=new HungaryMan();
    public static  HungaryMan getInstance(){
        return HUNGARY_MAN;
    }

    public static void main(String[] args) {
        HungaryMan hungaryMan1 = HungaryMan.getInstance();
        HungaryMan hungaryMan2 = HungaryMan.getInstance();
        System.out.println(hungaryMan1);
        System.out.println(hungaryMan2);
    }
}
